/* static/css/styles.css */

/* 基础样式 */
body {
    padding-top: 70px;
    background-color: #e6f0ff; /* 浅蓝色背景 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333; /* 深灰色文字 */
}

/* 导航栏 */
.navbar {
    background-color: #1a73e8; /* 亮蓝色 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* 过滤表单 */
.filter-form {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-form .form-label {
    color: #1a73e8; /* 与导航栏一致的蓝色 */
}

.filter-form .btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.filter-form .btn-primary:hover {
    background-color: #1669c1;
    border-color: #1669c1;
}

.filter-form .btn-secondary {
    background-color: #cccccc;
    border-color: #cccccc;
}

.filter-form .btn-secondary:hover {
    background-color: #b3b3b3;
    border-color: #b3b3b3;
}

/* 表格样式 */
.table-responsive {
    margin-top: 20px;
}

.table {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    vertical-align: middle;
    text-align: center;
}

.table thead th {
    background-color: #1a73e8; /* 亮蓝色表头 */
    color: #ffffff;
    font-weight: bold;
}

.table tbody tr:nth-child(odd) {
    background-color: #f2f9ff; /* 极浅蓝色行背景 */
}

.table tbody tr:hover {
    background-color: #d0e7ff; /* 悬停行颜色 */
}

/* 按钮样式 */
.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-warning {
    background-color: #ffcc00;
    border-color: #ffcc00;
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

/* 模态框内容 */
.modal-header {
    background-color: #1a73e8;
    color: #ffffff;
}

.modal-body {
    background-color: #f9f9f9;
}

.modal-footer {
    background-color: #f9f9f9;
}

/* 预格式化文本 */
.preformatted {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dddddd;
}

/* 自定义滚动条 */
.modal-dialog-scrollable .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}
